 <!--   <!DOCTYPE html>
    <html lang="en" xmlns:th="http://www.thymeleaf.org">
    <head>
        <meta charset="UTF-8">
        <title>修改空气情况</title>
    </head>
    <body>
    <h2>空气质量维护页面</h2>
    <div>
        <form action="update" method="post">
            检测区域：<select  name="district_id">
            <option>请选择</option>
            <option th:selected="${air.district_id eq 1}"  value="1" name="district_id"> 东城区</option>
            <option th:selected="${air.district_id eq 2}"  value="2" name="district_id"> 西城区</option>
            <option th:selected="${air.district_id eq 3}"  value="3" name="district_id"> 海淀区</option>
            <option th:selected="${air.district_id eq 4}"  value="4" name="district_id"> 丰台区</option>
            <option th:selected="${air.district_id eq 5}"  value="5" name="district_id"> 房山区</option>
            <option th:selected="${air.district_id eq 6}"  value="6" name="district_id"> 昌平区</option>
            <option th:selected="${air.district_id eq 7}"  value="7" name="district_id"> 通州区</option>
            </select>
            <input type="hidden" name="id" th:value="${air.id}">
            检测日期：<input type="date" name="monitor_time" th:value="${air.monitor_time}"><br>
            PM10值：<input type="text" name="pm10" th:value="${air.pm10}"><br>
            PM25值：<input type="text" name="pm25" th:value="${air.pm25}"><br>
            检测站：<input type="text" name="monitoring_station" th:value="${air.monitoring_station}"><br>
            最后修改时间：<input type="text" name="last_modify_time" th:value="${air.last_modify_time}">
            <input type="submit" value="保存">

        </form>
        <a th:href="@{'delete?id='+${air.id}}">删除</a>
    </div>

    </body>
    </html>-->

    <!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-spring4-4.dtd">
    <html lang="en" xmlns:th="http://www.thymeleaf.org">
    <head>
        <meta charset="utf-8">
        <title>修改空气情况</title>
        <style>
            body{
                margin: 0px;
                background-color: aquamarine;
                background-size: cover;
            }
            #div1{
                height: 50px;
                line-height: 50px;
                font-size: 30px;
                font-weight: 600;
                color: white;
                background-color: darkcyan;
                /* text-indent: 50px; */
                padding-left: 40px;
            }
            #div2{
                height: 500px;
                width: 600px;
                background-color: rgba(0,0,0,0.2);
                margin: 80px auto;
                padding-top: 20px;
                padding-left: 80px;

            }

            #div2 img{
                height: 30px;
                width: 30px;
                vertical-align: middle;
            }
            #div2 input{
                height: 25px;
                width: 249px;
                padding-left: 20px;
                font-size: 20px;
                margin: 20px;
            }
            submit{
                width: 100px;
                height: 30px;
                background-color: #FFFFFF;
                border: 0px;
                font-size: 20px;
                text-align: center;
            }


        </style>
    </head>
    <body>
    <!-- 第一块区域 -->
    <div id="div1">
        空气质量维护页面
    </div>
    <div id="div2">
        <div>
            <form action="update" method="post">
                检测区域：<select  name="district_id" style="height: 25px">
                <option>请选择</option>
                <option th:selected="${air.district_id eq 1}"  value="1" name="district_id"> 东城区</option>
                <option th:selected="${air.district_id eq 2}"  value="2" name="district_id"> 西城区</option>
                <option th:selected="${air.district_id eq 3}"  value="3" name="district_id"> 海淀区</option>
                <option th:selected="${air.district_id eq 4}"  value="4" name="district_id"> 丰台区</option>
                <option th:selected="${air.district_id eq 5}"  value="5" name="district_id"> 房山区</option>
                <option th:selected="${air.district_id eq 6}"  value="6" name="district_id"> 昌平区</option>
                <option th:selected="${air.district_id eq 7}"  value="7" name="district_id"> 通州区</option>
            </select>
                <input type="hidden" name="id" th:value="${air.id}">
                空气检测日期：<input type="date" name="monitor_time" th:value="${air.monitor_time}"><br>
                空气PM10值：<input type="text" name="pm10" th:value="${air.pm10}"><br>
                空气PM25值：<input type="text" name="pm25" th:value="${air.pm25}"><br>
                选择的检测站：<input type="text" name="monitoring_station" th:value="${air.monitoring_station}"><br>
                最后修改时间：<input type="date" name="last_modify_time" th:value="${air.last_modify_time}">
               <div style="padding-left: 120px">
                   <input type="submit" value="保存" >
               </div>
            </form>
            <a th:href="@{'delete?id='+${air.id}}" style="padding-left: 400px">删除</a>
        </div>
    </div>



    </body>
    </html>
